import request from '@/utils/request'
import { MessageBox } from 'element-ui'

// 查询智能柜列表列表
export function listShuweiCabinet(query) {
  return request({
    url: '/terminal/list',
    method: 'post',
    params: query
  })
}

// 查询智能柜详细
export function getShuweiCabinet(seriesNo) {
  return request({
    url: '/terminal/getInfo/' + seriesNo,
    method: 'get'
  })
}


// 修改智能柜列表
export function saveShuiweiCabient(data) {
  return request({
      url: '/terminal/save',
      method: 'post',
      data: JSON.stringify(data)
    })
}

// 删除智能柜列表
export function delShuweiCabinet(ids) {
  return request({
    url: '/terminal/remove',
    method: 'post',
    data: ids
  })
}





